-- bank
-- created by panyl
-- 地牢格子：银行类

return {
    restoreGrid = function(grid, info)
        -- 设置本次兑换次数
        DungeonBankM.setExchangeTimes(grid.layer, tonumber(info.times));
    end,

    collectContext = function(grid)
        -- 银行只需要当前兑换次数
        return { ["times"] = DungeonBankM.getExchangeTimes(grid.layer)}
    end
};
